package com.acme.task4;

public class Task4Arrays {
	public static void main(String[] args) {

		int array[] = new int[10];
		array[0] = 3;
		array[1] = 7;
		array[2] = 3;
		array[3] = 9;
		array[4] = 7;
		array[5] = 9;
		array[6] = 3;
		array[7] = 7;
		array[8] = 3;
		array[9] = 3;
		
		int num3 = 0, num7 = 0, num9 = 0;
		
		for (int i = 0; i < 10; i++) {
			switch (array[i]) {
			case 3: 
				num3++;
				break;
			case 7:
				num7++;
				break;
			case 9:
				num9++;
				break;
			default:
					System.out.println("the wrong data in the array");
			}
		}
		System.out.println("Number of 3: " + num3);
		System.out.println("Number of 7: " + num7);
		System.out.println("Number of 9: " + num9);
	}
}
